import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  {
    path: "/admin",
    name: "Admin",
    component: () => import("../views/Admin.vue"),
  },
  {
    path: "/ranklist",
    name: "RankList",
    component: () => import("../views/RankList.vue"),
  },
  {
    path: "/Detail",
    name: "detail",
    component: () => import("../views/Detail.vue"),
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/play",
    name: "Play",
    component: () => import("../views/Play.vue"),
  },
  {
    path: "/songsing",
    name: "SongSing",
    component: () => import("../views/SongSing.vue"),
  },
  {
    path: "/song",
    name: "Song",
    component: () => import("../views/Song.vue"),
  },
  {
    path: "/user",
    name: "User",
    component: () => import("../views/User.vue"),
  },
  {
    path: "/TJGD",
    name: "TJGD",
    component: () => import("../views/TJGD.vue"),
  },
  {
    path: "/ranklistdetail",
    name: "RankListDetail",
    component: () => import("../views/RankListDetail.vue"),
  },
  {
    path: "/reg",
    name: "Reg",
    component: () => import("../views/Reg.vue"),
  },
  {
    path: "/search",
    name: "Search",
    component: () => import("../views/Search.vue"),
  },
  {
    path: "/video",
    name: "Video",
    component: () => import("../views/Video.vue"),
  },
  {
    path: "/",
    name: "Jump",
    component: () => import("../views/Jump.vue"),
  },
  
  

  {
    path: "/Pinglun",
    name: "Pinglun",
    component: () => import("../views/Pinglun.vue"),
  },
  {
    path: "/Collect",
    name: "Collect",
    component: () => import("../views/Collect.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
